// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * CoreLayoutUpdate generated by hbm2java
 */
@Entity
@Table(name = "core_layout_update", catalog = "magento")
public class CoreLayoutUpdate implements java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private Integer layoutUpdateId;
	private String handle;
	private String xml;
	private short sortOrder;
	private Set widgetInstancePageLayouts = new HashSet(0);
	private Set coreLayoutLinks = new HashSet(0);

	public CoreLayoutUpdate() {
	}

	public CoreLayoutUpdate(short sortOrder) {
		this.sortOrder = sortOrder;
	}

	public CoreLayoutUpdate(String handle, String xml, short sortOrder,
			Set widgetInstancePageLayouts, Set coreLayoutLinks) {
		this.handle = handle;
		this.xml = xml;
		this.sortOrder = sortOrder;
		this.widgetInstancePageLayouts = widgetInstancePageLayouts;
		this.coreLayoutLinks = coreLayoutLinks;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "layout_update_id", unique = true, nullable = false)
	public Integer getLayoutUpdateId() {
		return this.layoutUpdateId;
	}

	public void setLayoutUpdateId(Integer layoutUpdateId) {
		this.layoutUpdateId = layoutUpdateId;
	}

	@Column(name = "handle")
	public String getHandle() {
		return this.handle;
	}

	public void setHandle(String handle) {
		this.handle = handle;
	}

	@Column(name = "xml", length = 65535)
	public String getXml() {
		return this.xml;
	}

	public void setXml(String xml) {
		this.xml = xml;
	}

	@Column(name = "sort_order", nullable = false)
	public short getSortOrder() {
		return this.sortOrder;
	}

	public void setSortOrder(short sortOrder) {
		this.sortOrder = sortOrder;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreLayoutUpdate")
	public Set getWidgetInstancePageLayouts() {
		return this.widgetInstancePageLayouts;
	}

	public void setWidgetInstancePageLayouts(Set widgetInstancePageLayouts) {
		this.widgetInstancePageLayouts = widgetInstancePageLayouts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "coreLayoutUpdate")
	public Set getCoreLayoutLinks() {
		return this.coreLayoutLinks;
	}

	public void setCoreLayoutLinks(Set coreLayoutLinks) {
		this.coreLayoutLinks = coreLayoutLinks;
	}

}
